<?php $this->load->view("common/page_header");?>
<div id="body_main">
	<div id="admin_header">
		<?php $this->load->view('common/admin_header'); ?>
		<div class="top_cleft">
			<ul>
			</ul>
			<div class="clear"></div>
		</div>
	</div>
	<div id="admin_content">
		<div id="admin_navigator">
			<ul class="navigator">
				<li><a href="/console/recharge">手工充值</a></li>
				<li class="current"><a href="/console/recharge/records">充值记录</a></li>
			</ul>
		</div>
		<div id="admin_body">
			<div class="margin_top15 margin_bottom10">
				<span class="bold">总计<?php echo $total;?>个</span>
				<div class="clear"></div>
			</div>
			<form method="post" action="" id="orders-form">
			<table class="a_table">
				<tr>
					
					<th>会员id</th>
					<th>昵称</th>
					<th>充值数</th>
					<th>充值方式</th>
					<th>日期</th>
				</tr>
				<?php if (!empty($orders)) {?>
				<?php foreach($orders as $order) { ?>
				<tr>
					<td><?php echo $order['id']?></td>
					<td><a href="/user/show?user_id=<?php echo $order['created_by'];?>"><?php echo $order['nickname'];?></a></td>
					<td><?php echo $order['card_count'];?></td>
					<td><?php echo $order['pay_method'];?></td>
					<td><?php echo $order['created'];?></td>
				</tr>
				<?php } ?>
				<?php }?>
			</table>
			</form>
		</div>
		<div class="clear"></div>
	</div>
	<?php $this->load->view("common/footer");?>	
</div>
<script type="text/javascript">
$(document).ready(function(){
	$("#approve-submit").click(function() {
		$("#groups-form").submit();
	});
});
</script>	
<?php $this->load->view("common/page_footer");?>